package com.hsjk.szwj.module.train.convert;

import com.hsjk.szwj.framework.common.pojo.PageResult;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminCourseVideoCreateReqVO;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminCourseVideoDetailRespVO;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminCourseVideoPageRespVO;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminCourseVideoPageSearchRespVO;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminCourseVideoUpdateReqVO;
import com.hsjk.szwj.module.train.dal.dataobject.course.CourseVideoDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/10/28 21:43
 **/
@Mapper
public interface CourseVideoConvert {
    CourseVideoConvert INSTANCE = Mappers.getMapper(CourseVideoConvert.class);

    PageResult<AdminCourseVideoPageRespVO> convertAdminCourseVideoPageRespVO(PageResult<CourseVideoDO> result);

    PageResult<AdminCourseVideoPageSearchRespVO> convertAdminCourseVideoPageSearchRespVO(PageResult<CourseVideoDO> result);

    AdminCourseVideoDetailRespVO convertAdminCourseVideoDetailRespVO(CourseVideoDO courseVideoDO);

    CourseVideoDO convertCourseVideoDO(AdminCourseVideoCreateReqVO reqVO);
    CourseVideoDO convertCourseVideoDO(AdminCourseVideoUpdateReqVO reqVO);
}
